package com.project.communitymanagement.service.impl;

import com.project.communitymanagement.common.BaseServiceImpl;
import com.project.communitymanagement.entity.TbApprovaDts;
import com.project.communitymanagement.mapper.TbApprovaDtsMapper;
import com.project.communitymanagement.service.TbApprovaDtsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TbApprovaDtsServiceImpl  extends BaseServiceImpl<TbApprovaDtsMapper, TbApprovaDts> implements TbApprovaDtsService {

    @Autowired
    private TbApprovaDtsMapper tbapprovadtsMapper;

    @Override
    protected TbApprovaDtsMapper mapper() {
        return tbapprovadtsMapper;
    }

    @Override
    protected TbApprovaDts defaultModel() {
        return new TbApprovaDts();
    }

    @Override
    public List<TbApprovaDts> getDataByLeaveId(Integer leaveId) {
        return tbapprovadtsMapper.getDataByLeaveId(leaveId);
    }
}
